﻿namespace Jim.OA.Service;

/// <summary>
/// OA部门
/// </summary>
[Tenant("OA")]
[SugarTable("HrmDepartment", "OA部门")]
public class OAHrmDepartment  : OAEntityBase
{
    /// <summary>
    /// 部门标识
    /// </summary>
    [SugarColumn(ColumnName = "departmentmark", ColumnDescription = "部门标识", Length = 1000)]
    public string? departmentmark { get; set; }
    
    /// <summary>
    /// 部门名称
    /// </summary>
    [SugarColumn(ColumnName = "departmentname", ColumnDescription = "部门名称", Length = 1000)]
    public string? departmentname { get; set; }
    
    /// <summary>
    /// 所属分部1
    /// </summary>
    [SugarColumn(ColumnName = "subcompanyid1", ColumnDescription = "所属分部1")]
    public int? subcompanyid1 { get; set; }
    
    /// <summary>
    /// 上级部门id
    /// </summary>
    [SugarColumn(ColumnName = "supdepid", ColumnDescription = "上级部门id")]
    public int? supdepid { get; set; }
    
    /// <summary>
    /// 所有上级部门id
    /// </summary>
    [SugarColumn(ColumnName = "allsupdepid", ColumnDescription = "所有上级部门id", Length = 2000)]
    public string? allsupdepid { get; set; }
    
    /// <summary>
    /// 封存标识	
    /// </summary>
    [SugarColumn(ColumnName = "canceled", ColumnDescription = "封存标识	", Length = 1)]
    public string? canceled { get; set; }
    
    /// <summary>
    /// 部门编码
    /// </summary>
    [SugarColumn(ColumnName = "departmentcode", ColumnDescription = "部门编码", Length = 1000)]
    public string? departmentcode { get; set; }
    
    /// <summary>
    /// 协办人
    /// </summary>
    [SugarColumn(ColumnName = "coadjutant", ColumnDescription = "协办人")]
    public int? coadjutant { get; set; }
    
    /// <summary>
    /// 组织架构部门负责人
    /// </summary>
    [SugarColumn(ColumnName = "zzjgbmfzr", ColumnDescription = "组织架构部门负责人", Length = 4000)]
    public string? zzjgbmfzr { get; set; }
    
    /// <summary>
    /// 组织架构部门分管领导
    /// </summary>
    [SugarColumn(ColumnName = "zzjgbmfgld", ColumnDescription = "组织架构部门分管领导", Length = 4000)]
    public string? zzjgbmfgld { get; set; }
    
    /// <summary>
    /// 矩阵管理部门负责人
    /// </summary>
    [SugarColumn(ColumnName = "jzglbmfzr", ColumnDescription = "矩阵管理部门负责人", Length = 4000)]
    public string? jzglbmfzr { get; set; }
    
    /// <summary>
    /// 矩阵管理部门分管领导
    /// </summary>
    [SugarColumn(ColumnName = "jzglbmfgld", ColumnDescription = "矩阵管理部门分管领导", Length = 4000)]
    public string? jzglbmfgld { get; set; }
    
    /// <summary>
    /// 矩阵部门负责人员
    /// </summary>
    [SugarColumn(ColumnName = "bmfzr", ColumnDescription = "矩阵部门负责人员", Length = 2147483647)]
    public string? bmfzr { get; set; }
    
    /// <summary>
    /// 矩阵部门分管领导
    /// </summary>
    [SugarColumn(ColumnName = "bmfgld", ColumnDescription = "矩阵部门分管领导", Length = 2147483647)]
    public string? bmfgld { get; set; }
    
    /// <summary>
    /// 外键
    /// </summary>
    [SugarColumn(ColumnName = "outkey", ColumnDescription = "外键", Length = 1000)]
    public string? outkey { get; set; }
    
    /// <summary>
    /// 做预算结转时的临时排序用
    /// </summary>
    [SugarColumn(ColumnName = "budgetAtuoMoveOrder", ColumnDescription = "做预算结转时的临时排序用")]
    public int? budgetAtuoMoveOrder { get; set; }
    
    /// <summary>
    /// 部门首字母搜索
    /// </summary>
    [SugarColumn(ColumnName = "ecology_pinyin_search", ColumnDescription = "部门首字母搜索", Length = 1000)]
    public string? ecology_pinyin_search { get; set; }
    
    /// <summary>
    /// 部门层级
    /// </summary>
    [SugarColumn(ColumnName = "tlevel", ColumnDescription = "部门层级")]
    public int? tlevel { get; set; }
    /// <summary>
    /// 
    /// </summary>
    [SugarColumn(ColumnName = "uuid", ColumnDescription = "", Length = 100)]
    public string? uuid { get; set; }
    
    /// <summary>
    /// 显示顺序
    /// </summary>
    [SugarColumn(ColumnName = "showorder", ColumnDescription = "显示顺序")]
    public double? showorder { get; set; }
    
    /// <summary>
    /// 
    /// </summary>
    [SugarColumn(ColumnName = "showOrderOfTree", ColumnDescription = "")]
    public int? showOrderOfTree { get; set; }
    
}
